
#include	"String.h"

#define	M_NOP	_asm("nop");

typedef  enum{
	LOCAL_ASIA,
	LOCAL_NORTH_AMERICA,
	LOCAL_SOUTH_AMERICA,
	LOCAL_EUROPE,
	NUM_OF_LOCAL
}UI_LOCAL;

typedef struct
{
	unsigned short	FolderNo;
	unsigned short	FileNo;
	unsigned char Hour;
	unsigned char Min;
	unsigned char Sec;
	unsigned short BitRate;
} UI_PLAY_INFO;

#define	UI_USB_DETECTED	0x01
#define	UI_USB_MOUNTED	0x02
#define	UI_USB_ERROR	0x04
#define	UI_USB_FILE		0x10
#define	UI_USB_FASTPLAY	0x40

#define	UI_CD_DETECTED	0x01
#define	UI_CD_LOADED	0x02
#define	UI_CD_MOUNTED	0x04
#define	UI_CD_FILE		0x08

#define	UI_TEXT_READY_FOLDERNAME	0x01
#define	UI_TEXT_READY_FILENAME		0x02
#define	UI_TEXT_READY_TITLE			0x04	// and CD-DA Text
#define	UI_TEXT_READY_ARTIST		0x08
#define	UI_TEXT_READY_ALBUM			0x10
#define	UI_TEXT_READY_GENRE			0x20
#define	UI_TEXT_READY_BITRATE		0x40
#define UI_TEXT_READY_ALBUMARTIST   0x80

typedef enum{
	REPEAT_NONE,
	REPEAT_FILE,
	REPEAT_FOLDER
}UI_REPEAT_MODE;

typedef enum{
	RANDOM_NONE,
	RANDOM_ALL,
	RANDOM_FOLDER
}UI_RANDOM_MODE;

typedef enum{
	SCAN_NONE,
	SCAN_ALL,
	SCAN_FOLDER
}UI_SCAN_MODE;

typedef  enum{
	INFO_FILENAME,
	INFO_PLAYTIME,
	INFO_FOLDERNAME,
	INFO_ID3TAG
}UI_INFO_MODE;

typedef  enum{
	ID3TAG_TITLE,
	ID3TAG_ARTIST,
	ID3TAG_ALBUM,
	ID3TAG_BITRATE
}UI_ID3TAG_MODE;

typedef  enum{
	CD_TEXT_ALBUM,
	CD_TEXT_ALBUM_ARTIST,
	CD_TEXT_TITLE,
	CD_TEXT_ARTIST
}UI_CD_TEXT_MODE;

#define	MEDIA_CHAR_SIZE	128

#define	FUNC_SEQ_NONE		0
#define	FUNC_POWER_ON_SEQ0	0x10
#define	FUNC_POWER_ON_SEQ1	0x11
#define	FUNC_POWER_ON_SEQ2	0x12
#define	FUNC_POWER_ON_SEQ3	0x13
#define	FUNC_POWER_ON_SEQ4	0x14
#define	FUNC_POWER_ON_SEQ5	0x15
#define	FUNC_POWER_ON_SEQ6	0x16
#define	FUNC_POWER_ON_SEQ7	0x17
#define	FUNC_POWER_ON_SEQ8	0x18
#define	FUNC_POWER_ON_SEQ9	0x19

#define	FUNC_CHANGE_SEQ0	0x20
#define	FUNC_CHANGE_SEQ1	0x21
#define	FUNC_CHANGE_SEQ2	0x22
#define	FUNC_CHANGE_SEQ3	0x23
#define	FUNC_CHANGE_SEQ4	0x24
#define	FUNC_CHANGE_SEQ5	0x25
#define	FUNC_CHANGE_SEQ6	0x26
#define	FUNC_CHANGE_SEQ7	0x27
#define	FUNC_CHANGE_SEQ8	0x28
#define	FUNC_CHANGE_SEQ9	0x29

#define	FUNC_POWER_OFF_SEQ0	0x40
#define	FUNC_POWER_OFF_SEQ1	0x41
#define	FUNC_POWER_OFF_SEQ2	0x42
#define	FUNC_POWER_OFF_SEQ3	0x43
#define	FUNC_POWER_OFF_SEQ4	0x44
#define	FUNC_POWER_OFF_SEQ5	0x45
#define	FUNC_POWER_OFF_SEQ6	0x46
#define	FUNC_POWER_OFF_SEQ7	0x47
#define	FUNC_POWER_OFF_SEQ8	0x48
#define	FUNC_POWER_OFF_SEQ9	0x49

#define	ACC_ON		0
#define	ACC_OFF		1

#define	PWR_ALL			0x1F
#define	PWR_ANT			0x01
#define	PWR_USB			0x02
#define	PWR_CTR1		0x04
#define	PWR_BACKLIGHT	0x08
#define	PWR_CTR2		0x10

#define	AGC5030_FONT_WITDH	33

#define	MEDIA_NORMAL_PLAY				0
#define	MEDIA_FAST_BACKWARD_PLAY		1
#define	MEDIA_FAST_FORWARD_PLAY			2

typedef  enum{
	FUNC_TUNER,
	FUNC_AUX,
#ifdef  CD
	FUNC_CD,
#endif
	FUNC_USB,
#ifdef  BLUETOOTH
	FUNC_A2DP,
	FUNC_HF,
	FUNC_LPB,
#endif
#ifdef  AV_CONTROLLER
	FUNC_AVC_MODE,
#endif
	FUNC_NUMBER
}UI_FUNCTION;


